package com.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

/**
 * Created by CCX on 2018/4/17.
 */

@Controller
public class NetControlCenter {

    /**
     * 用户验证
     */
    @RequestMapping("/longin")
    public ModelAndView userTokenVerify(String userName,String pass){
        ModelAndView modelAndView=new ModelAndView("longin");
        modelAndView.getModel().put("userName",userName);
        modelAndView.getModel().put("pass",pass);
            return modelAndView;
    }


}
